<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>7_文本溢出替换为省略号</title>
    <style>
        div{
            background-color: #ff0;
            width: 200px;
            white-space: nowrap;/*禁止换行*/
            overflow: hidden;/*超出隐藏*/
            text-overflow: ellipsis;/*文本溢出替换为省略号*/
        }
    </style>
</head>
<body>
    <div>
        <div>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ab, aliquam expedita iste minus repellendus
            tempore! Deleniti libero nobis odit temporibus. Impedit nemo officia quaerat quidem saepe. Deserunt magnam
            molestiae veniam.
        </div>
    </div>
</body>
</html>